package com.amiu.autoMybatis.test.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.springframework.stereotype.Component;

import com.amiu.Bean;
import com.amiu.autoMybatis.annotation.Mapper;

@Mapper
public interface DaoMapper {
	public Bean findById(long id);

	public List<Bean> findByPhone(long phone);
	
	@MapKey("id")
	public Map<Long, Bean> findByName(String name);
	
	public int insert(Bean bean);
	
	public void deleteById(long id);
	
	public void updateById(Bean bean);

}